/**
 * Created by bgy on 2016/12/2.
 */
import React from 'react';
import {hashHistory} from 'react-router';

import login from '../../actions/login';
class Menu extends React.Component {
  handleClick(path) {
    hashHistory.push(path);
    if (!login.isLogin()) {

    }
  }

  render() {
    return (
      <div className="menu">
        <div className="item" ref="">
          <img src="images/main/icon_plan@2x.png" alt="" onClick={this.handleClick.bind(this,'login')}/><p>采购计划</p>
        </div>
        <div className="item" ref="order" >
          <img src="images/main/icon_order@2x.png" alt="" onClick={this.handleClick.bind(this,'order')}/><p>我的订单</p>
        </div>
        <div className="item">
            <img src="images/main/icon_fruit@2x.png" alt="" onClick={this.handleClick.bind(this,'MyFruits')}/><p>我的水果</p>
        </div>
        <div className="item">
          <img src="images/main/icon_quote@2x.png" alt="" onClick={this.handleClick.bind(this,'quoteList')}/><p>我的报价</p>
        </div>
        <div className="item">
          <img src="images/main/icon_account@2x.png" alt="" onClick={this.handleClick.bind(this,'account')}/><p>账户管理</p>
        </div>
        <div className="item">
          <img src="images/main/icon_standard@2x.png" alt="" onClick={this.handleClick.bind(this,'qualityStandard')}/><p>质检标准</p>
        </div>
        <div className="item">
          <img src="images/main/icon_criteria@2x.png" alt="" onClick={this.handleClick.bind(this,'joinTeam')}/><p>加入优果联</p>
        </div>
        <div className="item">
          <a style={{textAlign:'center'}} href='https://flogin.bangfin.com/login?from=mobile&mobile=13570023732&service=http%3A%2F%2Ffpagoda.bangfin.com%2F%3Fs%3Dfpagoda.bangfin.com'><img src="images/main/icon_finance@2x.png" alt=""/><p>供应链金融</p></a>
        </div>
      </div>
    )
  }
}

Menu.defaultProps = {};

export default Menu;
